<!DOCTYPE html>
<!--suppress ALL -->
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <!--[if lt IE 9]>
    <script src="statics/newcommon/js/html5shiv.js"></script>
    <![endif]-->
    <meta name="keywords" content="网贷平台,网络借贷，网络赚钱项目,理财产品">
    <meta name="description" content="亿人财富网贷平台为您提供网络赚钱项目；为此相继推出了许多新的理财产品，在为您创造高收益的同时也优化了理财产品模式。网络借贷，就选爱钱帮。">
    <meta charset="UTF-8">
    <link  rel="Shortcut  Icon"  th:href="@{/statics/home/images/minilogo.png}">
    <link rel="stylesheet" th:href="@{/statics/newcommon/css/m2-commonNew.css}">
    <link rel="stylesheet" th:href="@{/statics/newcommon/css/m2-common.css}">
    <link rel="Shortcut  Icon" th:href="@{/statics/newcommon/images/minilogo.png}">
    <link rel="stylesheet" th:href="@{/statics/usercenter/css/userCenter.css}">
    <script type="text/javascript" th:src="@{/statics/newcommon/js/jquery.min.js}"></script>
    <script type="text/javascript" th:src="@{/statics/newcommon/js/common.js}"></script>
    <script type="text/javascript" th:src="@{/statics/usercenter/js/esl.js}"></script>
    <link rel="stylesheet" th:href="@{/statics/usercenter/css/jquery.datetimepicker.css}" />
    <script type="text/javascript" th:src="@{/statics/usercenter/js/jquery.datetimepicker.js}"></script>
</head>
<title>我的账户</title>

<div class="m2-userCentermain">
    <div class="m2-userCentermain-aside">
        <ul>
            <li class="m2-asideListitem">
                <a class="m2-aside-item" th:href="@{/usercenter.html}"><i class="m2-asideIcon1"></i>我的账户</a>
            </li>
            <li class="m2-asideListitem">
                <a class="m2-aside-item m2-aside-toggle" ><i class="m2-asideIcon2"></i>投资管理<b class="m2-asideIcon-new"></b></a>
                <ul class="m2-aside-secItem" style="display:none">
                    <li>
                    <a class="m2-aside-secLink-item" th:href="@{/monthrepay.html}">回款计划</a>
                </li>
                    <li>
                        <a class="m2-aside-secLink-item" th:href="@{/looselabel_record/queryalls}">散标回款计划</a>
                    </li>
                    <li>
                        <a class="m2-aside-secLink-item" th:href="@{/usercenter-investcontrol-investrecord.html}">投资记录计划</a>
                    </li>
                </ul>
            </li>
        </ul>
    </div>
    <script th:inline="javascript">
        // 		$(document).ready(function(){
        var href = window.location.href;
        var search = window.location.search;
        $('.m2-asideListitem ul a').each(function () {
            if ($(this).prop('href') + search == href) {
                if ($(this).prop('href') == "/usercenter-wangbaoqiang" || $(this).prop('href') == "/usercenter-sirendingqi") {
                } else {
                    $(this).parent().parent('ul').show();
                    $(this).parent().parent('ul').prev('a').removeClass('m2-aside-item');
                    $(this).parent().parent('ul').prev('a').addClass('m2-aside-cur');
                    $(this).css('text-decoration', 'underline');
                    $(this).css('color', '#0996CC');
                }
            }
        });
        $('.m2-asideListitem a:not(.m2-asideListitem ul a)').each(function () {
            if ($(this).prop('href') + search == href) {
                if ($(this).prop('href').search("usercenter-wangbaoqiang") > -1) {
                    $(this).removeClass('m2-aside-wbq');
                    $(this).addClass('m2-aside-cur');
                } else if ($(this).prop('href').search("usercenter-sirendingqi") > -1) {
                    $(this).removeClass('m2-aside-wbq');
                    $(this).addClass('m2-aside-cur');
                } else {
                    $(this).removeClass('m2-aside-item');
                    $(this).addClass('m2-aside-cur');
                }
            }
        });
        $('.m2-asideListitem a:not(.m2-asideListitem ul a)').click(function () {
            if ($(this).prop('href') == '') {
                $(this).siblings('ul').slideToggle();
                $(this).parent().siblings('.m2-asideListitem').children('.m2-aside-secItem').slideUp();
            }
        });
        // 		});
    </script>

    <style>
        #growth_scale {position:relative;width: 200px;display: inline-block;height: 16px;background-color: #f0f4f7;border-radius: 10px;line-height: 16px;font-size: 14px;}
        #growth_scale .bg {width:0;height: 16px;background-color: #5bd916;border-radius: 10px;overflow: hidden;}
        .m2-userMsg-iconLv span {padding-left:28px;font-size:16px;color:#f87450;}
        .m2-userMsg-iconLv a {width:98px;padding:38px 8px;height:0;}
        .m2-wel-lef .left {width:186px;text-align:center;height:240px;color:#f5944f;line-height:24px;font-size:12px;
        }
        .m2-wel-lef .left button {width:100px;height:40px;color:white;border:0;background-color:#fe6555;font-size:18px;border-radius:10px;margin-bottom:12px;}
        .m2-wel-lef .right {position:absolute;right:-20px;top:4px;width:240px;}
        .m2-wel-profitLink .m2-profit-cha{float:left;padding:0 20px;height:34px;line-height:34px;}
        .m2-userMsg-iconLv a i {top:30px;left:0;height:40px;}
    </style>
    <div style="width:100%; height:100%; position:fixed; z-index:100; display:none; top:0; left:0;" id="allP" >
        <div style="width:100%; height:100%; position:absolute; top:0; left:0; background:#000; opacity:0.5;"></div>
        <div style="width:404px; height:154px; background:#fff; position:absolute; top:50%; left:50%; margin-left:-252px; margin-top:-100px; border:2px solid #666;">
            <p style="color: #666666;font-size: 16px;absolute;line-height:170px;text-align: center; font-family: Microsoft YaHei;;">该项目已还清，为保护企业隐私，不再公示项目信息</p>
            <div style="width: 30px;height: 30px;position: absolute;top: 11px;right: 0px;color: #666;font-size: 20px;cursor: pointer;" id="close">X</div>
        </div>

    </div>
    <div class="m2-userCentermain-con">
        <div class="m2-msgBox">
            <b>通知<em></em></b>
            <span id='notice-text'></span>
            <a id='notice-url' href="usercenter-messagecontrol-sitemsg.html">&nbsp;&nbsp;[详情]</a>
            <i class="m2-msgBox-close" id='notice-close'></i>
        </div>
        <div class="m2-wel-con" style="background-color:white;width:798px;">
            <p class="m2-wel-hello" id='greeting' style="background-color:white;margin:0 10px;width: 730px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title='上午好，iqb13737301354，投资，是为了更好的自己！'>上午好，投资，是为了更好的自己！</p>
            <div class="m2-wel-lef">
                <!--            <span style="position:absolute;top:85px;right:10px;font-size:15px;line-height:15px;">邀请码：<i style="font-style:normal;">xrejfr</i></span>-->
                <div class="left">
                    <img src="statics/usercenter/images/growth/vip.png" alt="亿人财富" style="margin:20px;"><br>
                    <button style="background-color:#b7b6b6;outline:none;" >已签到</button>                <p>您已连续签到<span id='day'>1</span>天，</p>
                    <p><span id='today'>明天</span>再签到可获得<span id='growth'>2</span>个成长值</p>
                </div>
                <div class="right">
                    <div class="m2-userMsg-iconLv" >
                        <a href="usercenter-growth-index.html" class="m2-iconLevel-normal"><i></i><span>帮主</span></a>
                    </div>

                    <div>成长值：<span id="mydetail_num" data="4000">1</span><a href="/usercenter-growth-index#mao" style="color:#69b1d7;float:right;">如何加速？</a></div>
                    <div id="desc" style="margin:10px 0;font-size:12px;">距离 <span id='vipname'>铁帮主</span> 还需要 <span id='integral'>3999</span> 成长值</div>	            <div id="growth_scale"><div class='bg'></div></div>
                    <ul style="margin:16px 0 10px 0;">
                        <li class="m2-userMsg-icon" style="margin-left:-8px;"><a href="javascript:void(0)" id='verify_id' class="m2-iconUser-fal" title='实名认证'></a></li>
                        <li class="m2-userMsg-icon"><a href="javascript:void(0)" id='verify_phone' class="m2-iconPho-fal" title='手机认证'></a></li>
                        <li class="m2-userMsg-icon"><a href="javascript:void(0)" id='verify_email' class="m2-iconEmail-fal" title='邮箱认证'></a></li>
                    </ul>
                    <div class="m2-wel-level" style="margin-left:0;">
                        <p>安全等级：<span class="m2-level-low" id='safe_level'  style="color:#1adb9e;"></span><a href="javascript:void(0)" id='safe_level_url' style="color:#0996cc;">[提升]</a></p>
                        <!--                <div class="m2-level-image" id='safe_level_bar'>-->
                        <!--                    <i class="m2-levelIcon-fal"></i>-->
                        <!--                    <i class="m2-levelIcon-fal"></i>-->
                        <!--                    <i class="m2-levelIcon-fal"></i>-->
                        <!--                </div>-->
                        <!--                <div class="m2-wel-border"></div>-->
                    </div>
                </div>
            </div>
            <div class="m2-wel-rig" style="float:right;width:320px;padding-top:66px;height:174px;border-left:1px solid #f0f0f0;">
                <div class="m2-wel-profitCon" >
                    <div class="m2-wel-profit" style="width:142px;">
                        <p>
                            累计收益（元）
                            <b>
                                <u style="width:100px;z-index: 10;">
                                    <em class="m2-userProfit-arr"></em>
                                    <em class="m2-userProfit-arrBg"></em>
                                    到账收益：0.00<br>
                                </u>
                            </b>
                        </p>
                        <span id="a6">0.00</span>
                    </div>
                    <div class="m2-wel-profit" style="width:142px;">
                        <p>
                            今日赚取（元）
                            <b>
                                <u style="width:120px;">
                                    <em class="m2-userProfit-arr"></em>
                                    <em class="m2-userProfit-arrBg"></em>
                                    按在投项目精确计算的当天收益金额
                                </u>
                            </b>
                        </p>
                        <span id="a7">0.00</span>
                    </div>
                </div>
                <div class="m2-wel-profitLink" >
                   <div> <input type="text" id="a8" style="width: 100px"> <input style="width: 100px" type="text" id="a9"> </div>
                    <div>  <a class="m2-profit-cha" href="javascript:void(0)" id="a4" style="margin-left: 70px">充值</a>
                     <a class="m2-profit-cha" href="javascript:void(0)" style="margin-left:34px" id="a5">提现</a> </div>
                </div>
            </div>
        </div>
        <div class="m2-userInd-num">
            <div class="border">
                温馨提示：因数据处理存在延迟，项目还款时数值会存在异常波动，还款后2小时银行完成对账后显示为正常值。
            </div>
            <ul>
                <li class="m2-userIndnum-item">
                    <p class="m2-detail-tit" >资产总计:
                    </p>
                    <span class="m2-detailNum-tur" style="color:#f5944f" id="a3">0.00</span>
                    <i class="m2-userIndnum-equ" ></i>
                </li>
                <li class="m2-userIndnum-item">
                    <p class="m2-detail-tit" >待收本金:

                    </p>
                    <span class="m2-detailNum-fal" id="a2">0.00</span>
                    <i class="m2-userIndnum-add"></i>
                </li>
                <li class="m2-userIndnum-item">
                    <p class="m2-detail-tit">账户余额
                        <b class="m2-detail-titIcon">
                            <u style="width:160px;text-align:left">
                                <em class="m2-detail-titHide-arr"></em>
                                <em class="m2-detail-titHide-arrBg"></em>
                                <!---->
                                徽商账户余额：0.00                        </u>
                        </b>
                    </p>
                    <span class="m2-detailNum-fal" id="a1">0.00</span>
                </li>
            </ul>
        </div>


            <script type="text/javascript" th:src="@{/usercenter/js/jquery.datetimepicker.modified.js}"></script>
            <style type="text/css">
                div.calenderdetail{
                    position: absolute;
                    display: none;
                    top: 0px;
                    left: 39px;
                    box-sizing:contect-box;
                    -moz-box-sizing:contect-box; /* Firefox */
                    -webkit-box-sizing:contect-box; /* Safari */
                    z-index: 100;
                    width: 222px;
                    border: 1px solid #F67645;
                    background-color: #fff;
                }
                .calItem{
                    width: 220px;
                    height: 29px;
                    line-height: 29px;
                    border-bottom: 1px solid #F67645;
                    zoom: 1;
                }
                .calItem:after{display:block;clear:both;visibility:hidden;height:0;content:'-';}
                .lefItem{
                    float: left;
                    display: inline-block;
                    width: 95px;
                    height: 29px;
                    line-height: 29px;
                    background-color: #F67645;
                    color: #fff;
                    font-size: 12px;
                    text-align: center;
                }
                .rigItem{
                    float: left;
                    display: inline-block;
                    width: 124px;
                    height: 28px;
                    line-height: 28px;
                    background-color: #fff;
                    color: #F67645;
                    font-size: 12px;
                    color: #F67645;
                    text-align: center;
                }
                .calMore{
                    width: 220px;
                    height: 28px;
                    line-height: 28px;
                    background-color: #fff;
                    text-align: right;
                }
                .link_more{
                    display: inline-block;
                    padding-right: 15px;
                    color: #F67645;
                    font-size: 12px;
                }
                .link_more:hover,.link_more:active{
                    color: #F85625;
                }
                .xdsoft_calendar td:hover div.calenderdetail{
                    display: block;
                }
                .xdsoft_calendar td{
                    position: relative;
                }
                .advIcon{
                    display: block;
                    position: absolute;
                    width: 26px;
                    height: 21px;
                    top: -4px;
                    left: -3px;
                }
                .advIcon img{
                    width: 100%;
                    height: 100%;
                }
                .b0-backDet{
                    width: 414px;
                    padding: 10px 0;
                    zoom: 1;
                }
                .b0-backDet:after{display:block;clear:both;visibility:hidden;height:0;content:'-';}
                .b0-backLef{
                    float: left;
                    width: 232px;
                    border-right: 1px solid #CDCDCD;
                    padding-left: 12px;
                }
                .b0-orange{
                    height: 24px;
                    line-height: 24px;
                }
                .b0-orange span,.b0-purple span{
                    display: inline-block;
                }
                .b0-purple{
                    height: 24px;
                    line-height: 24px;
                }
                .b0-orange .b0-lefTit{
                    color: #fb9c77;
                    font-size: 12px;
                }
                .b0-orange .b0-lefNum{
                    color: #f67645;
                    font-size: 16px;
                    font-weight: bold;
                }
                .b0-purple .b0-lefTit{
                    color: #cb7bcb;
                    font-size: 12px;
                }
                .b0-purple .b0-lefNum{
                    color: #b35db3;
                    font-size: 16px;
                    font-weight: bold;
                }
                .b0-backRig{
                    float: left;
                    width: 152px;
                    padding-left: 6px;
                }
                .b0-rigTop{
                    zoom: 1;
                    height: 23px;
                    line-height: 23px;
                    border-bottom: 1px solid #CDCDCD;
                }
                .b0-rigTop:after{display:block;clear:both;visibility:hidden;height:0;content:'-';}
                .b0-rigDis{
                    float: left;
                    position: relative;
                    width: 40px;
                    padding-left: 22px;
                }
                .b0-rigDis i{
                    display: block;
                    position: absolute;
                    width: 13px;
                    height: 13px;
                    left: 4px;
                    top: 5px;
                    border-radius: 50%;
                }
                .b0-rigBot{
                    zoom: 1;
                }
                .b0-rigBot:after{display:block;clear:both;visibility:hidden;height:0;content:'-';}
                .b0-iconAdv{
                    display: inline-block;
                    float: left;
                    margin-left: 4px;
                    width: 50px;
                    height: 25px;
                    background: url(statics/usercenter/images/iconAdv.png) no-repeat 0 5px;
                }
                .b0-botDet{
                    display: inline-block;
                    float: left;
                    font-size: 12px;
                    color: #4e4e4e;
                    margin-left: 13px;
                    line-height: 30px;
                }
                .b0-backMore{
                    display: inline-block;
                    float: left;
                    position: relative;
                    width: 16px;
                    height: 16px;
                    margin: 6px 0 0 12px;
                    background: url(statics/usercenter/images/b-question.png) no-repeat;
                    cursor: pointer;
                }
                .b0-backMore:hover span{
                    display: block;
                }
                .b0-backMore span{
                    display: none;
                    position: absolute;
                    width: 200px;
                    left: 22px;
                    top: -70px;
                    padding: 5px 8px;
                    line-height: 18px;
                    font-size: 12px;
                    color: #717171;
                    background-color: #fff;
                    border: 1px solid #b35db3;
                }
                .b0-backMore span i{
                    display: block;
                    position: absolute;
                    width: 8px;
                    height: 12px;
                    left: -8px;
                    top:70px;
                    background: url(statics/usercenter/images/borrow_arrow.png);
                }
                .b0-backMore span b{
                    font-weight:normal;
                    color:#0996cc;
                }
            </style>
        </div>


    </div>


    <script th:inline="javascript">
        $(function(){
            var scale=$("#mydetail_num").text()/$("#mydetail_num").attr("data")*100+"%";
            $("#growth_scale .bg").animate({width:scale},900);
            $('#sign').click(function(){
                var active_id='0';
                $.ajax({
                    type:"POST",
                    url: "/usercenter-Index-sign_in",
                    data: {active_id:active_id},
                    success: function (data) {
                        var obj=JSON.parse(data);
                        var data = obj.data;
                        if(obj.resultcode==41001){
                            if(data.level==4 ||data.level==5){
                                $("#mydetail_num").attr("data",data.growthvalue);
                            }else{
                                $("#mydetail_num").attr("data",parseInt(data.growthvalue+data.integral));
                            }
                            $("#mydetail_num").text(data.growthvalue);
                            $("#sign").css("backgroundColor","#b7b6b6");
                            $("#sign").text('已签到');
                            $('#day').html(parseInt($('#day').html())+1);
                            var growth=parseInt($('#growth').html())+1;
                            if (growth>=10){
                                growth=10;
                            }
                            $('#growth').html(growth);
                            $('#today').html('明天');
                            var scale=$("#mydetail_num").text()/$("#mydetail_num").attr("data")*100+"%";
                            $("#growth_scale .bg").animate({width:scale},900);
                            $('#integral').html(data.integral);
                            $('#vipname').html(data.name);
                            switch(data.level){
                                case 0:
                                    $('.right .m2-userMsg-iconLv a').attr('class','m2-iconLevel-normal');
                                    $('.right .m2-userMsg-iconLv a span').text('帮主');
                                    break;
                                case 1:
                                    $('.right .m2-userMsg-iconLv a').attr('class','m2-iconLevel-iron');
                                    $('.right .m2-userMsg-iconLv a span').text('铁帮主');
                                    break;
                                case 2:
                                    $('.right .m2-userMsg-iconLv a').attr('class','m2-iconLevel-copper');
                                    $('.right .m2-userMsg-iconLv a span').text('铜帮主');
                                    break;
                                case 3:
                                    $('.right .m2-userMsg-iconLv a').attr('class','m2-iconLevel-gold');
                                    $('.right .m2-userMsg-iconLv a span').text('金帮主');
                                    break;
                                case 4:
                                    $('.right .m2-userMsg-iconLv a').attr('class','m2-iconLevel-paltinum');
                                    $('.right .m2-userMsg-iconLv a span').text('白金帮主');
                                    $('#desc').text('您已然是一人之下，万人之上，无比荣耀');
                                    break;
                                case 5:
                                    $('.right .m2-userMsg-iconLv a').attr('class','m2-iconLevel-svip');
                                    $('.right .m2-userMsg-iconLv a span').text('特邀帮主');
                                    $('#desc').text('爱钱帮最高等级，王者荣耀');
                                    break;
                            }
                        }
                    }
                });
            })
            selectforinvest();
            $("#a4").click(function(){
                var url=/*[[@{/invest/zhifubao}]]*/
                    if($("#a8").val()!="") {
                        var money=$("#a8").val();
                        $.ajax({
                            url: url,
                            data: {"money":money},
                            success:function(data) {
                             $("body").html(data);
                            }
                        });
                    }else{
                        alert("申请金额不能为空");
                    }
            })
        })
        $("#a5").click(function(){
            var url=/*[[@{/invest/tixian}]]*/
            if($("#a9").val()!=""&& $("#a9").val()*1<=$("#a1").html()*1){
                var money=$("#a9").val();
                $.ajax({
                    url:url,
                    data:{"money":money},
                    dataType:"text",
                    success:function (data) {
                        console.log(data);
                        if(data=="1"){
                            alert("提现申请已提交，请耐心等待");
                        }else{
                            alert("系统异常，请重新申请");
                        }
                    }
                })
            }else{
                alert("申请金额不能为空或不能大于账户余额")
            }
        });
        var oP=document.getElementById('allP');
        var oClose=document.getElementById('close');
        //oP.style.display='none';
        oClose.onclick=function(){
            oP.style.display='none';
        };

        function selectforinvest(){
            var url=/*[[@{/invest/list}]]*/
            $.ajax({
                url:url,
                dataType:"json",
                success:function (data) {
                    var sum=data.data.balance*1+data.data.frozen*1;
                $("#a1").html(data.data.balance);
                $("#a2").html(data.data.frozen);
                $("#a3").html(sum.toFixed(2));
                $("#a7").html(data.data.recyclinginterest);
                $("#a6").html(data.data.capitaltotal);
                }
            });
        }

        /**
         * 已结束的项目不允许查看合同
         */
        function linkContractContract(that){
            var bid=that.getAttribute('bid');
            var status = that.getAttribute('status');
            if(status==7||status==11){
                oP.style.display='block';
            } else {
                window.open("member-contract-investor.shtml?id="+bid,"_blank");
            }
        }
        /**
         * 已结束的项目不允许查看合同
         */
        function linkContracttransContract(that){
            var bid=that.getAttribute('bid');
            var status = that.getAttribute('status');
            if(status==7||status==11){
                oP.style.display='block';
            } else {
                window.open("member-contracttrans-investor.shtml?id="+bid,"_blank");
            }
        }
        /**
         * 已结束的项目不允许下载合同
         */
        function linkDownload(that){
            var bid=that.getAttribute('bid');
            var status = that.getAttribute('status');
            if(status==7||status==11){
                oP.style.display='block';
            } else {
                window.open("Member-Contract-createAndSendPdfbyid?id="+bid,"_blank");
            }
        }
    </script>

    <script>

        $(document).ready(function () {
            //用户通知
            getMsg();
            //用户问候语图标
            getGreeting();

            //用户认证
            userVerify();
            //收益金颜色
            moneyColor();
            //异步加载月收益图
            loadMonChart();
            fitBottom();
        });

        function getMsg() {

            var title = $('<div>' + $('#ntitle').text() + '</div>').text();
            var msg = $('<div>' + $('#nmsg').text() + '</div>').text();
            if (title == '') {
                $('.m2-msgBox').hide();
            }
            if (title.length > 10) {
                $('#notice-text').text(title);
            } else {
                if (!msg) {
                    $('.m2-msgBox').hide();
                } else {
                    if (msg.length > 55) {
                        msg = msg.substr(0, 55);
                        msg += '...  ';
                    }
                    $('#notice-text').text(msg);
                }
            }
        }

        function getGreeting() {

            var date = new Date();
            var H = date.getHours();
            if (H < 5) {
                icon = '<i class="m2-hello-nig">';
            } else if (H < 12) {
                icon = '<i class="m2-hello-mor">';
            } else if (H < 18) {
                icon = '<i class="m2-hello-aft">';
            } else if (H < 20) {
                icon = '<i class="m2-hello-nig">';
            } else {
                icon = '<i class="m2-hello-nig">';
            }
            $('#greeting').prepend(icon);
        }

        function userVerify() {

            var i = 0;
            if (1 == '0') {
                $('#verify_id').prop('class', 'm2-iconUser-tur');
                i++;
            }
            if (1 == '1') {
                $('#verify_phone').prop('class', 'm2-iconPho-tur');
                i++;
            }
            if (1 == '0') {
                $('#verify_email').prop('class', 'm2-iconEmail-tur');
                i++;
            }
            if (i == 1) {
                $('#safe_level').text('低');
            } else if (i == 2) {
                $('#safe_level').text('中');
            } else if (i == 3) {
                $('#safe_level').text('高');
                $('#safe_level_url').hide();
            } else {
                $('#safe_level').text('极低');
            }
            var j = 0;
            $('#safe_level_bar i').each(function () {
                if (j < i) {
                    $(this).prop('class', 'm2-levelIcon-tur');
                    j++;
                }
            });
        }

        function moneyColor() {

            var a;
            $('span.m2-detailNum-fal').each(function () {
                a = $(this).text();
// 			if(!isNaN(a)){
                if (a != 0) {
                    $(this).prop('class', 'm2-detailNum-tur');
                } else {
                    $(this).text('0.00');
                }
// 			}
            });
        }

        function loadMonChart() {

            $('.m2-chartLoading').show();
            $.ajax({
                url: "usercenter-Index-getIncomeList",
                data: {},
                success: function (data) {
                    $('.m2-chartLoading').hide();
                    var obj = eval('(' + data + ')');
                    monthData = getList(obj.monlist, 'income');
                    monthCate = getList(obj.monlist, 'month');
                    dailyData = getList(obj.daylist, 'income');
                    dailyCate = getList(obj.daylist, 'day');
                    loadChartmonth(monthData, monthCate);
                }
            });
        }

        function getList(data, key) {
            var l = Array();
            for (k in data) {
                l.push(data[k][key]);
            }
            return l;
        }
        function getPaymentDetail(date) {
            //日期.分割
            window.location.href = '/usercenter-investcontrol-dayrepayment?date=' + date;
        }
        //日历日期点击事件
        function getPaymentList(y, m, d) {
            window.location.href = '/usercenter-investcontrol-dayrepayment?date=' + y + '.' + m + '.' + d;
        }


        //提示框
        function showMsgs(text) {
            $('#dialog-info-div').show();
            $('#dialog-info-text').text(text);
        }

        //js:
        //$().shijian
        //$(".class")
        //$("#id")


        //close
        $('.m2-userCentercommon-confirmClose,.m2-user-confirmBtn').click(function(){
            $('#dialog-info-div').hide();
            $('#dialog-info-text').text("");
        });
        var card = '';

        function showMsg() {

            //当前银行卡
            if(!card) {
                //没有绑卡
                showMsgs('您还未绑卡，现在确定去绑卡吗？');
                return;
            } else {
                $('.m2-userCommon-confirmSuc').html('使用一键转账功能可将您的汇付账户中资金转移至您的徽商银行账户（无任何手续费），资金预计在1-3个工作日内到账，请耐心等候！');
                $('.m2-userCentercommon-bg').show();
                //  $('.m2-userCentercommon-confirm').show();
                $('#dialog-info-div1').show();
                return;
            }
        }
    </script>
    <script type="text/javascript" th:src="@{/usercenter/js/m2-userCenter.js}"></script>
</div>
</div>
</body>
</html>